package com.rran.study.designpattern.behavioral.strategy.strategy;

import com.rran.study.designpattern.behavioral.strategy.model.PayContext;

/**
 * @author yy
 * @Type UnionPayStrategy.java
 * @Desc
 * @date 2020/7/20 11:44
 */
public class UnionPayStrategy implements PayStrategy {

    private final String STRATEGY = "银联支付";

    @Override
    public void pay(PayContext payContext) {
        System.out.println(payContext.getName()+"使用"
        +STRATEGY+payContext.getPrice()+"元");
    }
}
